package com.yang.design.create.singletonPattern;

import java.lang.reflect.Constructor;

public enum Single04 {
    INSTANCE;

    public static Single04 getInstance() {
        return INSTANCE;
    }

    public static void main(String[] args) throws Exception {
        Class<Single04> clz = Single04.class;
        Constructor<Single04> constructor = clz.getDeclaredConstructor();
        constructor.setAccessible(true);
        Single04 newInstance = constructor.newInstance();
        Single04 newInstance1 = constructor.newInstance();
    }
}
